package com.nowcoder.community;
/**
 * 功能描述
 *
 * @author 21775
 * @date 2022/09/13  20:36
 */

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.PostMapping;

import javax.annotation.PostConstruct;

/**
 *@ClassName CommunityApplication
 *@Description TODO 启动类
 *@Author 21775
 *@Date 2022/9/13 20:36
 *@Version 1.0
 */
@SpringBootApplication
public class CommunityApplication {
    @PostConstruct
    public void init(){
        //解决netty冲突（redis和elasticsearch）问题
        System.setProperty("es.set.netty.runtime.available.processors","false");
    }
    public static void main(String[] args) {
        SpringApplication.run(CommunityApplication.class,args);
    }
}
